package net.shopxx.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 实体类 - 颜色
 */

@Entity
public class PropertiesValue extends BaseEntity {

	private static final long serialVersionUID = -6109590619136943215L;

	private Properties properties;// 名称
	private String lable;// 枚举显示
	private String value;// 枚举值

	@OneToOne(fetch = FetchType.LAZY)
	@Cascade(value = { CascadeType.ALL})
	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	@Column(nullable = false)
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(nullable = false)
	public String getLable() {
		return lable;
	}

	public void setLable(String lable) {
		this.lable = lable;
	}
}